package cn.cdutetc.library.entity.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;

/**
 * 图书导入模板DTO
 */
@Data
@ContentRowHeight(20)
@HeadRowHeight(25)
public class BookImportTemplateDTO {
    
    @ExcelProperty(value = "ISBN号*", index = 0)
    @ColumnWidth(20)
    private String isbn;
    
    @ExcelProperty(value = "图书名称*", index = 1)
    @ColumnWidth(30)
    private String bookName;
    
    @ExcelProperty(value = "作者*", index = 2)
    @ColumnWidth(20)
    private String author;
    
    @ExcelProperty(value = "出版社", index = 3)
    @ColumnWidth(25)
    private String publisher;
    
    @ExcelProperty(value = "出版日期(格式:2023-01-01)", index = 4)
    @ColumnWidth(25)
    private String publishDate;
    
    @ExcelProperty(value = "分类名称*", index = 5)
    @ColumnWidth(20)
    private String categoryName;
    
    @ExcelProperty(value = "图书价格", index = 6)
    @ColumnWidth(15)
    private String price;
    
    @ExcelProperty(value = "总册数*", index = 7)
    @ColumnWidth(12)
    private String totalCopies;
    
    @ExcelProperty(value = "图书位置", index = 8)
    @ColumnWidth(25)
    private String location;
    
    @ExcelProperty(value = "图书简介", index = 9)
    @ColumnWidth(40)
    private String description;
    
}
